endBtn = document.querySelector("#endBtn");
startBtn = document.querySelector("#startBtn");

endBtn.onclick = function () {
  isSpinning = false;
  dice.rotate.x = 150;
  dice.rotate.y = 90;
  dice.rotate.z = 10;
};

startBtn.onclick = function() {
  isSpinning = true;
  dice.rotate.x += 0.2
  dice.rotate.y += 0.2
//   dice.rotate.z += 0.1;
}

//5 = dice.rotate.x=0;dice.rotate.y=0;dice.rotate.z=-50;